package com.xy.gateway.service.impl;


import java.util.List;
import java.util.Map;
import java.util.Date;
import com.xy.core.util.BeanUtil;
import com.xy.common.page.Pagination;
import com.xy.core.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.xy.gateway.dao.ReqparaDao;
import com.xy.gateway.model.Reqpara;
import com.xy.gateway.service.ReqparaService;

@Service
@Transactional
public class ReqparaServiceImpl extends BaseServiceImpl<Reqpara> implements
		ReqparaService {
	private ReqparaDao reqparaDao;

	public ReqparaServiceImpl(ReqparaDao paramAppRoleDao) {
		super(paramAppRoleDao);
		this.reqparaDao = paramAppRoleDao;
	}

	@Override
	public boolean checkExist(String paraName, String paraValue) {
		return reqparaDao.checkExist("Reqpara", paraName, paraValue);
	}

	@Override
	public List<Reqpara> getReqpara(Map<String, Object> map) {
		return reqparaDao.getReqpara(map);
	}
	@Override
	public Pagination getReqparaByPage(Map<String, Object> map, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		return reqparaDao.getReqparaByPage(map, pageNo, pageSize);
	}
	 
   @Override
	public Reqpara save(Reqpara reqpara1) {return super.save(reqpara1);}
}